<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="./css/basic.css">
    <title>flex布局</title>
    <style>
        .container {
            /* 设置flex布局 */
            display: flex;
            /* 设置flex布局的主轴方向 */
            flex-direction: row;
             /* 居中对齐 */
            /* justify-content: center; */
               /* 两头对齐 */
            /* justify-content: space-between; */
            /* 均分 */
            /* justify-content: space-evenly; */
            /* 间隔对齐 */
            justify-content: space-around;
            height: 50vh;
        }
        .row_item {
            width: 10vw;
            height: 100px;
            background-color: pink;
            text-align: center;
            margin: 0 10px;
            /* text-align是文字居中，跟flex布局 justify-content: center;一样*/
            /* line-height: 100px; */
            /*  line-height是文字的高度 跟flex布局align-items: center;一样*/
            display: flex;
            /* 交叉轴对齐方式 */
            align-items: center;
            /* 主轴对齐方式 */
            justify-content: center;
        }
        .container :nth-child(6),  .container :nth-child(1){
            flex:1;
        }
        .row_item:nth-child(3) {
            align-self: flex-end;
        }
        /* 单个子元素的对齐方式 */
    </style>
</head>
<body>
    <div class="container">
        <div class="row_item">1</div>
        <div class="row_item">2</div>
        <div class="row_item">3</div>
        <div class="row_item">4</div>
        <div class="row_item">5</div>
        <div class="row_item">6</div>
    </div>
</body>
</html>